# Record.py 
# VHP-2, slawek@rozbicki.eu

class Record:
	u"Record"
	def __init__(self, line):
		u""
		l = line
		self.src_ip = l["src_ip"]
		self.dst_ip = l["dst_ip"]
		self.src_port = l["src_port"]
		self.dst_port = l["dst_port"]
		self.url = l["url"]
		self.vhost = l["vhost"]
		self.referrer = l["referrer"]
		self.user_agent = l["user_agent"]
		self.timestamp = l["timestamp"]
		self.method = l["method"]
        def __repr__(self):
                return u"%d <-(%s:%d)" % (self.timestamp, self.src_ip, self.src_port)
